<script>
import Default from '@/portal4.1/pc/container/guest-default.vue'
import DefaultEntity from '@/template/entityTemp/defaultEntity.vue'
import DefaultMore from '@/template/DefaultMore.vue'
export default {
  name: 'PcIndex',
  components: { Default, DefaultEntity, DefaultMore },
  data() {
    return {
      timer: null,
      screenWidth: document.body.clientWidth
    }
  },
  computed: {
    // 加载默认主题，后面课动态设置默认主题
    Default() {
      return Default
    }
  },
  created() {
    const mid = this.$route.query.lid
    if (undefined !== mid && mid !== '' && mid !== null) {
      this.$store.commit('SET_LAYOUT_MENU_ID', mid)
    }
  }
}
</script>

<template>
  <div class="portal-body">
    <component :is="Default" />
    <default-entity />
    <default-more />
  </div>
</template>

<style scoped>
.portal-body {
  width: 100vw;
  height: 100vh;
  background-size: 100%;
}
</style>
